package com.zheng.pvz.view
{
	import com.zheng.pvz.model.proxy.TileProxy;
	
	import flash.display.Sprite;
	
	/**
	 * tile容器 
	 * @author Administrator
	 * 
	 */
	public class TileContain extends Sprite
	{
		public var tileArr:Array;
		public function TileContain(tileArr:Array)
		{
			this.tileArr=tileArr;
		}
		/**
		 * 清除tiles 
		 * 添加tile的代码在Tile.put中
		 * 
		 */
		public function delTiles():void{
			var num:int=this.numChildren;
			for(var i:int=0;i<num;i++){
				this.removeChildAt(0);
			}
			tileArr=[];
		}
	}
}